
#pragma once

#include "Panel.h"

class Tickbox : public Panel
{
	public:

		Tickbox( Widget* pxParent );
		virtual ~Tickbox();
	
		virtual void Render( );
		virtual void Update( );

		virtual bool CanHaveChildren( ) { return false; }

		virtual void SetLabel( const char* szText );
		virtual const char*	GetLabel( ) { return m_szText; }

		virtual void SetBool( bool* pbBool );

	protected:

		// Disallow these functions

		virtual void SetSize( const u_int uWidth, const u_int uHeight ) {}
		virtual void SetImage( const StringHash xHash ) {}
		virtual void SetColour( const u_int uColour ) {}
		virtual void SetHasBorder( const bool bHasBorder ) {}
		virtual void SetBorderWidth( float fBorder ) {}

		char m_szText[64];
		bool* m_pbBool;
	
		Panel* m_pxTickboxPanel;
};

// eof
